package com.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.domain.WalletRecord;
import com.example.service.WalletRecordService;
import com.example.mapper.WalletRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 惠普
 * @description 针对表【wallet_record】的数据库操作Service实现
 * @createDate 2022-09-27 15:05:30
 */
@Service
public class WalletRecordServiceImpl extends ServiceImpl<WalletRecordMapper, WalletRecord>
		implements WalletRecordService {

	@Override
	public List<WalletRecord> getWalletByUserId(Integer userId) {
		return baseMapper.selectList(new QueryWrapper<WalletRecord>().eq("user_id", userId));
	}
}




